package com.gxa.meiye.admin.shop.service.impl;

import com.gxa.meiye.admin.shop.mapper.MainMapper;
import com.gxa.meiye.admin.shop.service.MainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author cc
 * @PackageName meiye
 * @Package com.gxa.meiye.admin.shop.service.impl
 * @Date 2022/7/23 10:03
 * @Version 1.0
 */
@Service
public class MainServiceImpl implements MainService {


    @Autowired
    private MainMapper mainMapper;
    @Override
    public Integer queryPayNum(Integer status2, String todayTime) {
        return mainMapper.selectPayNum(status2,todayTime);
    }

    @Override
    public Integer queryCheckNum(Integer status4,String  todayTime) {
        return mainMapper.selectCheckNum(status4, todayTime);
    }

    @Override
    public Integer queryRefundNum(Integer status8,String  todayTime) {
        return mainMapper.selectRefundNum(status8, todayTime);
    }

    @Override
    public BigDecimal getPay(Integer status2,String  todayTime) {
        return mainMapper.selectPay(status2, todayTime);
    }

    @Override
    public BigDecimal getIncome(Integer status4,String  todayTime) {
        return mainMapper.selectIncome(status4,todayTime);
    }

    @Override
    public BigDecimal getRefund(Integer status8,String  todayTime) {
        return mainMapper.selectRefund(status8,todayTime);
    }

    @Override
    public Integer SevenDaysAgoPayNum(Integer status2, Long nowTime, Long sevenDaysAgo) {
        return mainMapper.selectSevenDaysAgoPayNum(status2,nowTime,sevenDaysAgo);
    }

    @Override
    public Integer SevenDaysAgoCheckNum(Integer status4, Long nowTime, Long sevenDaysAgo) {
        return mainMapper.selectSevenDaysAgoCheckNum(status4,nowTime,sevenDaysAgo);
    }

    @Override
    public Integer SevenDaysAgoRefundNum(Integer status8, Long nowTime, Long sevenDaysAgo) {
        return mainMapper.selectSevenDaysAgoRefundNum(status8,nowTime,sevenDaysAgo);
    }

    @Override
    public BigDecimal SevenDaysAgoPay(Integer status2, Long nowTime, Long sevenDaysAgo) {
        return mainMapper.selectSevenDaysAgoPay(status2,nowTime,sevenDaysAgo);
    }

    @Override
    public BigDecimal SevenDaysAgoIncome(Integer status4, Long nowTime, Long sevenDaysAgo) {
        return mainMapper.selectSevenDaysAgoIncome(status4,nowTime,sevenDaysAgo);
    }

    @Override
    public BigDecimal SevenDaysAgoRefund(Integer status8, Long nowTime, Long sevenDaysAgo) {
        return mainMapper.selectSevenDaysAgoRefund(status8,nowTime,sevenDaysAgo);
    }

    @Override
    public Integer ThirtyDaysAgoPayNum(Integer status2, Long nowTime, Long thirtyDaysAgo) {
        return mainMapper.selectThirtyDaysAgoPayNum(status2,nowTime,thirtyDaysAgo);
    }

    @Override
    public Integer ThirtyDaysAgoCheckNum(Integer status4, Long nowTime, Long thirtyDaysAgo) {
        return mainMapper.selectThirtyDaysAgoCheckNum(status4,nowTime,thirtyDaysAgo);
    }

    @Override
    public Integer ThirtyDaysAgoRefundNum(Integer status8, Long nowTime, Long thirtyDaysAgo) {
        return mainMapper.selectThirtyDaysAgoRefundNum(status8,nowTime,thirtyDaysAgo);
    }

    @Override
    public BigDecimal ThirtyDaysAgoPay(Integer status2, Long nowTime, Long thirtyDaysAgo) {
        return mainMapper.selectThirtyDaysAgoPay(status2,nowTime,thirtyDaysAgo);
    }

    @Override
    public BigDecimal ThirtyDaysAgoIncome(Integer status4, Long nowTime, Long thirtyDaysAgo) {
        return mainMapper.selectThirtyDaysAgoIncome(status4, nowTime, thirtyDaysAgo);
    }

    @Override
    public BigDecimal ThirtyDaysAgoRefund(Integer status8, Long nowTime, Long thirtyDaysAgo) {
        return mainMapper.selectThirtyDaysAgoRefund(status8, nowTime, thirtyDaysAgo);
    }
}
